package aop1.aspectjAnnotation;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class LoggingAspect {
	@Around("execution(* aop1.aspectjAnnotation.TestBean.*(..))")
	public Object log(ProceedingJoinPoint pjp) throws Throwable {
		System.out.println("Before");
		Object ret = pjp.proceed();
		System.out.println("After");
		return ret;
	}
}
